import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VConsole from 'vconsole'
import baseComponent from './plugins/baseComponent'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import api from '@/api'

import './utils/rem'
import './assets/css/reset.css'
import 'swiper/css/swiper.css'

Vue.config.productionTip = false
Vue.use(baseComponent)
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)

Vue.prototype.$api = api

if (process.env.NODE_ENV === 'development') {
  new VConsole()
}

const vm = new Vue({
  router,
  store,
  render: h => h(App)
})
vm.$mount('#app')

export default vm
